﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master"
    AutoEventWireup="true" CodeFile="ViewProviderCarMakeOnly.aspx.cs" Inherits="Provider_CarInsurance_ViewProviderCarMakeOnly"
    Title="View Make" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Car Make</h1>
        <div class="right_action">
            <asp:HyperLink runat="server" ID="lnkNewCarMake" NavigateUrl="~/Provider/CarInsurance/ProviderCarMakeOnly.aspx"
                Text="New"></asp:HyperLink>
        </div>
        <table style="width: 100%">           
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="2"
                        DataKeyNames="ProviderCarMakeId" DataSourceID="sqlDsProviderCarMake" CssClass="progridstyle"
                        GridLines="None" EmptyDataText="There are no data records to display.">
                        <Columns>
                            <asp:BoundField DataField="ProviderCarMakeId" HeaderText="ProviderCarMakeId" InsertVisible="False"
                                ReadOnly="True" SortExpression="ProviderCarMakeId" Visible="False" />
                            <asp:BoundField DataField="CarMakeId" HeaderText="CarMakeId" SortExpression="CarMakeId"
                                Visible="False" />
                            <asp:BoundField DataField="ProviderCompanyId" HeaderText="ProviderCompanyId" SortExpression="ProviderCompanyId"
                                Visible="False" />
                            <asp:BoundField DataField="CX Car Make" HeaderText="CX Car Make" SortExpression="CX Car Make" />
                            <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                            <asp:BoundField DataField="Rate" HeaderText="Rate" SortExpression="Rate" DataFormatString="{0:F}" />
                            <asp:BoundField DataField="RefCEUserId" HeaderText="RefCEUserId" SortExpression="RefCEUserId" Visible="false" />
                            <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                            <asp:BoundField DataField="CreatedDate" HeaderText="CreatedDate" SortExpression="CreatedDate"
                                Visible="False" />
                            <asp:BoundField DataField="ModifiedDate" HeaderText="ModifiedDate" SortExpression="ModifiedDate" />
                            <asp:HyperLinkField HeaderText="" Text="Edit" Target="_self" DataNavigateUrlFormatString="ProviderCarMakeOnly.aspx?CarMakeId={0}&CarMakeModelId={1}"
                                DataNavigateUrlFields="CarMakeId, ProviderCarMakeModelId"></asp:HyperLinkField>
                        </Columns>
                        <FooterStyle />
                        <PagerStyle />
                        <SelectedRowStyle CssClass="progridover" />
                        <HeaderStyle CssClass="progridheader" />
                        <EditRowStyle />
                        <AlternatingRowStyle CssClass="progridodd" />
                        <RowStyle CssClass="progrideven" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="sqlDsProviderCarMake" runat="server" ConnectionString="<%$ ConnectionStrings:CE_DBConnectionString %>"
                        SelectCommand="sprocProviderCarMakeSelectItemListViewOnly" SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:SessionParameter Name="ProviderCompanyId" SessionField="ProviderCompanyId" Type="Int64" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                        ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
